package com.atgm.mall.gmmailproduct.controller;

import com.atgm.common.utils.R;
import com.atgm.mall.gmmailproduct.entity.GameUpdateEntity;
import com.atgm.mall.gmmailproduct.service.GameUpdateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping(value = "/gmmallproduct/gameupdate")
public class GameUpdateController {

    @Autowired
    private GameUpdateService gameUpdateService;

    @GetMapping("/info/{game_id}")
    public R getGameUpdateInfoByGameId(@PathVariable("game_id") Long gameId) {
        List<GameUpdateEntity> list = gameUpdateService.queryGameUpdateInfoByGameId(gameId);
        return R.ok().setData(list);
    }

}
